﻿<%
_out.targetFile =  util.format('%s\\Domain\\%s\\%s.cs', serverProjectDirectory, aggregate.plural, entity.singular);
_out.cover = false;
%>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Happy.Domain;

namespace <%= rootNamespace %>.Domain.<%= aggregate.plural %>
{
    public partial class <%= entity.singular %> : Entity<Guid>
    {
<% 
_.each(entity.columns, function(column) { 
    if(['Id', 'OptimisticKey', 'IsDeleted'].indexOf(column.name) >= 0) {
        return;
    }
%>
        public virtual <%= column.dataType.netDataType %><%= column.nullableIndicator %> <%= column.name %> { get; protected set; }
<%
});
%>
    }
}